/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package chapter6;

import java.util.regex.Matcher;
import java.util.regex.Pattern;

/**
 *
 * @author Denise Carolina
 */
public class SelfTest1 {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        Pattern p = Pattern.compile("\\d*");
        String s = "ab34ef";
        Matcher m = p.matcher(s);

        while(m.find()){
            System.out.println("m.start():: " + m.start() + " m.group():: " + m.group());
        }
    }

}
